package com.kingyun.gpsinspection.purificationservice.dao.mapper.tdm;


import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.DailyThings;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.DailyThingsVo;

public interface DailyThingsMapper {
    int deleteByPrimaryKey(String dailythingsId);

    int insert(DailyThings record);

    int insertSelective(DailyThings record);

    DailyThingsVo selectByPrimaryKey(String dailythingsId);

    int updateByPrimaryKeySelective(DailyThings record);

    int updateByPrimaryKey(DailyThings record);

    /**
     * 修改任务的AuditStatus
     *
     * @param dailyThings
     */
    int updateAuditStatusById(DailyThings dailyThings);

    /**
     * 修改任务的task_status
     *
     * @param dailyThings
     */
    int updateTaskStatusExecutedById(DailyThings dailyThings);

    /**
     * 修改任务为已完成
     *
     * @param dailyThings
     */
    int updateFinishById(DailyThings dailyThings);

    /**
     * 根据piid来查询任务
     */
    DailyThingsVo findVoByPiPiid(String piPiid);

    /**
     * 根据ID修改任务
     */
    int updateByPrimaryKeyNew(DailyThings dailyThings);

    /**
     * 查询任务信息（包含关联信息）
     */
    DailyThingsVo selectByPrimaryKeyNew(String taskId);
}